#ifndef LIBPLOAD_H
#define LIBPLOAD_H

#include <QString>
#include "PLoadLib.h"

class LibPload
{
public:
    LibPload();

    enum { DontClose = false };
    enum { ClosePort = true };
    enum { LoadRunEeprom = DOWNLOAD_RUN_EEPROM };
    enum { LoadRunHubRam = DOWNLOAD_RUN_BINARY };

    static int open(QString portname, int baud);
    static int close();
    static int find(QString portname);
    static int upload(QString filename, int operation);
    static int load(QString filename, int operation, int fileid);
    static int load(QString filename, int operation, QString portname, int baud);
};

#endif // LIBPLOAD_H
